/*
 * Copyright 2015 Ming Xia
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.healthcloud.entity;

import java.io.Serializable;

import com.healthcloud.query.CriteriaCondition;
import com.healthcloud.query.RelationalOp;
import com.healthcloud.search.Criteria;

/**
 * @author Sephy
 * @since: 2015-05-14
 */
public class AreaCodeCriteria implements Serializable, Criteria {

	private static final long serialVersionUID = -2424642100012419692L;

    public AreaCodeCriteria() {
    }

    public AreaCodeCriteria(Long codeMin, Long codeMax, Integer level) {
        this.codeMax = codeMax;
        this.codeMin = codeMin;
        this.level = level;
    }

    /**
	 * 区域级别
	 */
	private Integer level;

	/**
	 * 区域起始范围, 不包括
	 */
	@CriteriaCondition(name = "code", relationalOp = RelationalOp.GT)
	private Long codeMin;

	/**
	 * 区域结束范围, 不包括
	 */
	@CriteriaCondition(name = "code", relationalOp = RelationalOp.LT)
	private Long codeMax;

    public Long getCodeMax() {
        return codeMax;
    }

    public void setCodeMax(Long codeMax) {
        this.codeMax = codeMax;
    }

    public Long getCodeMin() {
        return codeMin;
    }

    public void setCodeMin(Long codeMin) {
        this.codeMin = codeMin;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
}
